/*
扩展ares-ui的扩展组件集合
 */
import AresFlex from './AresFlex';
import PackInput from './PackInput';
import PackHeader from './PackHeader';
import AresCounter from './AresCounter';
import TabPanel from './TabPanel';

const components = [
  AresFlex,
  PackInput,
  TabPanel,
  PackHeader,
  AresCounter,
];
function install(Vue) {
  if (install.installed) {
    return;
  }
  install.installed = true;
  components.forEach((Component) => {
    Vue.component(Component.name, Component);
  });
}

const AresUiExtend = {
  install,
};

components.forEach((Component) => {
  AresUiExtend[name] = Component.name;
});

if (typeof window !== 'undefined' && window.Vue) {
  window.Vue.use(install);
}

export default AresUiExtend;

// import AresUiExtend from '@/designer/ares-ui-extend';
// Vue.use(AresUiExtend);
